home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2002 #11 / Amiga Plus CD - 2002 - No. 11.iso / Tools / AmigaSystem / Scalos / GuiGFXLib / src / guigfx_convolve.h < prev    next >
Encoding:
C/C++ Source or Header  |  2002-10-28  |  684 b   |  37 lines

  1. /*********************************************************************
  2. ----------------------------------------------------------------------
  3.  
  4.     guigfx_convolve
  5.  
  6. ----------------------------------------------------------------------
  7. *********************************************************************/
  8.  
  9. #include "guigfx_global.h"
  10.  
  11.  
  12. #define BORDERMODE_WRAP            0
  13. #define    BORDERMODE_CONTINOUS    1
  14. #define    BORDERMODE_FIXEDCOLOR    2
  15.  
  16.  
  17.  
  18. typedef struct Kernel
  19. {
  20.     float    colorkernel[3*4];
  21.  
  22.     int        *spatkernel;
  23.  
  24.     int        spatwidth, spatheight;
  25.     
  26.     int        bordermode;
  27.     
  28.     ULONG    fixedcolor;
  29.     
  30.     int        divisor;
  31.     int        increment;
  32.  
  33. } KERNEL;
  34.  
  35.  
  36. extern ULONG PIC_Convolve(PIC *pic, KERNEL *kernel, TAGLIST taglist);
  37.